package com.yuezhi.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: yuezhi-parent
 * @description: 自定义异常类
 * @author: Mr.Liao
 * @create: 2020-12-16 13:55
 **/
@Data
@AllArgsConstructor //生成有参构造
@NoArgsConstructor  //生成无参构造
public class YueZhiException extends RuntimeException{
    private Integer code;//状态码
    private String msg;//异常信息
}
